package com.dekarrin.scraton;

import com.dekarrin.util.StringPadder;

public class ScoreLine extends TechnicalInstruction {
	
	private String artist;
	
	private String song;
	
	public ScoreLine(long timestamp, String artist, String song) {
		super(timestamp);
		this.artist = artist;
		this.song = song;
	}
	
	public String toString() {
		StringPadder padder = new StringPadder(format.scriptWidth, " ");
		StringBuilder builder = new StringBuilder();
		builder.append(padder.padLeft("SCORE:"));
		builder.append("\n");
		builder.append(padder.padLeft("\""+song+"\""));
		builder.append("\n");
		builder.append(padder.padLeft(artist));
		builder.append("\n\n");
		return builder.toString();
	}

}